package com.feilx.changggou.order.mq;

import com.changgou.mq.MQConstant;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class OrderQueueTest {


    @RabbitListener(queues = {MQConstant.ORDER_QUEUE_DLATE})
    public void accpet(String msg){
        System.out.println("接受到消息:"+msg);
    }
}
